package com.highdj.jfxdemo;

import com.highdj.jfxdemo.controller.LoginController;
import com.highdj.jfxdemo.view.LoadingView;
import com.highdj.jfxdemo.view.LoginView;
import de.felixroske.jfxsupport.AbstractJavaFxApplicationSupport;
import javafx.application.Application;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;
@MapperScan("com.highdj.jfxdemo.dao")
@SpringBootApplication
public class JfxDemoApplication extends AbstractJavaFxApplicationSupport {
    public static void main(String[] args) {
        launch(JfxDemoApplication.class, LoginView.class, new LoadingView(),args);
    }

    @Override
    public void beforeInitialView(Stage stage, ConfigurableApplicationContext ctx) {
        stage.setTitle("联合投送");
    }
}
